package com.project.bean;


import java.util.List;

public class UserBean {
    /**编号*/
    private int id;
    /**用户名*/
    private String name;
    /**密码*/
    private String pwd ;
    /**等级*/
    private String grade;
    /**购物车集合*/
    private List<ShopCarBean> shopList;

    public UserBean() {
    }

    public UserBean(String name, String pwd, String grade) {
        this.name = name;
        this.pwd = pwd;
        this.grade = grade;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public List<ShopCarBean> getShopList() {
        return shopList;
    }

    public void setShopList(List<ShopCarBean> shopList) {
        this.shopList = shopList;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", grade='" + grade + '\'' +
                ", shopList=" + shopList +
                "}\n";
    }
}
